package com.shangguan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName: HelloController
 * @Description:
 * @Author: 一尘
 * @Date: 2020 年 04 月 16 17:26
 * @Version 1.0
 */
@Controller
public class HelloController {
    @GetMapping("/hello")
    public  String hello(Model model){
        System.out.println("-----------------------hello------------------");
        model.addAttribute("hello","HELLO THYMELEAF")  ;
        return "list";
    }
}
